package com.szly.phm.common.entity.vo;

import com.szly.phm.common.entity.vo.login.LoginPermissionVO;
import com.szly.phm.common.entity.vo.login.LoginRoleVO;
import com.szly.phm.common.entity.vo.permissiom.PermissionTreeVO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;

/**
 * @Description : ${创建类}
 * @Author : chengjiang
 * @Date: 2021/7/2 16:59
 */
@Data
public class UserVO {

    @ApiModelProperty(value = "用户Id")
    private String userId;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "真实姓名")
    private String realName;

    @ApiModelProperty(value = "手机号")
    private String mobile;

    @ApiModelProperty(value = "token")
    private String token;

    @ApiModelProperty(value = "用户角色集合")
    private List<LoginRoleVO> roles;

    @ApiModelProperty(value = "用户的当前角色Id")
    private String roleId;

    @ApiModelProperty(value = "用户的当前角色名称")
    private String roleName;
    @ApiModelProperty(value = "用户token")
    private String newToken;
    @ApiModelProperty(value = "用户权限")
    private  List<PermissionTreeVO> userPermissions;


    @ApiModelProperty(value = "用户类型")
    private String userType;

    /**
     * 密码
     */
    private String password;

    /**
     * 盐
     */
    private String salt;


    /**
     * 邮箱
     */
    private String mailbox;

    /**
     * 职业
     */
    private String jobName;
    /**
     * 职业
     */
    ArrayList<AreaList> area;
    /**
     * 证件id
     */
    private String certificatesId;
    private String remarks;
}
